package com.caocaog.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caocaog.market.entity.OrderLine;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

/**
 * 商品订单行表
 *
 * @author jeecg-boot
 * @date 2021-11-29
 */
public interface OrderLineMapper extends BaseMapper<OrderLine> {

    List<OrderLine> getByOrderId(@Param("orderId") String orderId);

    LinkedList<HashMap<String, Object>> getSales(@Param("shopId") String shopId, @Param("type") Integer type);

    LinkedList<HashMap<String, Object>> getOrderAmount(@Param("shopId") String shopId, @Param("type") Integer type);

    LinkedList<HashMap<String, Object>> getSumOfBusiness(String shopId);

}
